<%-- 
    Document   : inc_connection_form
    Created on : Jan 3, 2013, 5:36:00 PM
    Author     : matt
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import="com.gestionabsences.form.FormConnection"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<table class="tab_connection"">
    <tr>
	<td><input type="text" id="<% out.print(FormConnection.CHAMP_LOGIN);%>" name="<% out.print(FormConnection.CHAMP_LOGIN);%>" value="<c:out value="${webuser.login}"/>" size="30" maxlength="30" placeholder="login" /></td>
    </tr>
    <tr>
	<td><input type="text" id="<% out.print(FormConnection.CHAMP_PASSWORD);%>" name="<% out.print(FormConnection.CHAMP_PASSWORD);%>" size="30" maxlength="30" placeholder="mot de passe" /></td>
    </tr>
    <tr>
	<td>
	    <select name="<% out.print(FormConnection.CHAMP_KIND_OF_USER);%>" id="<% out.print(FormConnection.CHAMP_KIND_OF_USER);%>" value="<c:out value="${webuser.type}"/>">
		<option value="" selected>Catégorie d'utilisateur</option>
		<option value="ETUDIANT">étudiant</option>
		<option value="ENSEIGNANT">enseignant</option>
		<option value="SECRETAIRE">secrétaire</option>
		<option value="ADMIN">admin</option>
	    </select>
	</td>
    </tr>
</table>

	    <div>
<c:if test="${ !empty form.erreurs['login'] }">
    <p class="help-inline">${form.erreurs['login']}</p><br />
</c:if>
<c:if test="${ !empty form.erreurs['password'] }">
    <p class="help-inline">${form.erreurs['password']}</p><br />
</c:if>
<c:if test="${ !empty form.erreurs['kindOfUser'] }">
    <p class="help-inline">${form.erreurs['kindOfUser']}</p><br />
</c:if>
<c:if test="${ !empty form.erreurs['erreur'] }">
    <p class="help-inline">${form.erreurs['erreur']}</p><br />
</c:if>
	    </div>